package com.liuceng.zen.pojo.domain;

import java.text.SimpleDateFormat;
import java.util.Date;

import lombok.Data;

@Data
public class GdtCampaign extends BaseDomain {
  private Integer id;
  private String cname;
  private Integer dayBudget;
  private Integer memberId;
  private Long cid;
  private Long uid;
  private String speedMode;
  private String ctype;
  private Date gdtCreatedAt;
  private Date gdtUpdatedAt;
  private String status;
  private Integer bldate;
  private String bldateAt;
  private Integer departmentId;
  private Integer adminId;
  
  public String getUpdatedAtToString() {
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
    if (super.getUpdatedAt()== null) {
      return "";
    } else {
      return sdf.format(super.getUpdatedAt());
    }
  }
}
